﻿<baseClass:Control 
			xmlns:baseClass="clr-namespace:EFS.RC.SupervisorCentral.Controls" 
			x:Class="EFS.RC.SupervisorCentral.Controls.Conversations.Surveys.List"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
			Loaded="Control_Loaded">
	
	<Control.Resources>
		<Style x:Key="LinkButton" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
					  <ControlTemplate.Resources>
						<Style TargetType="{x:Type TextBlock}">
						  <Setter Property="TextDecorations" Value="Underline" />
						  <Style.Triggers>
							<Trigger Property="IsMouseOver" Value="true">
								<Setter Property="Foreground" Value="Red" />
								<Setter Property="TextDecorations" Value="None" />
							</Trigger>
						  </Style.Triggers>
						</Style>
					  </ControlTemplate.Resources>
					  <ContentPresenter />
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="Foreground" Value="Blue" />
			<Setter Property="Cursor" Value="Hand" />
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Foreground" Value="Red" />
				</Trigger>
			</Style.Triggers>
		</Style>
	</Control.Resources>


	<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinHeight="300" MinWidth="600">
		<ListView HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="listViewSurveys" VerticalAlignment="Stretch">
			<ListView.View>
				<GridView AllowsColumnReorder="False" x:Name="gridViewSurveys">
					<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="400" />
					<GridViewColumn Header="Survey Report" Width="Auto">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center">
									<Hyperlink Name="hyperlinkViewSurveyReport" CommandParameter="{Binding ID}" Click="hyperlinkViewSurveyReport_Click">View</Hyperlink>
								</TextBlock>
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
					<GridViewColumn Header="Survey-Agent Report" Width="Auto">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center">
									<Hyperlink Name="hyperlinkViewSurveyAgentReport" CommandParameter="{Binding ID}" Click="hyperlinkViewSurveyAgentReport_Click">View</Hyperlink>
								</TextBlock>
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
				</GridView>
			</ListView.View>
		</ListView>
	</Grid>
</baseClass:Control>